package regex;
/**
 * boolean matches（String regex）;*/
public class MatchesDemo {
    public static void main(String[] args) {
        String str ="a";
        String regex = "[abc]";
        boolean boo =str.matches(regex);
        System.out.println(boo);
    }
}
